import ProductIndex from '@/components/product/index.vue'
import ProductInfo from '@/components/product/info.vue'


// 路由结构
const list = [
    {
        path: 'index',
        name: 'ProductIndex',
        component: ProductIndex,
    },
    {
        path: 'info',
        name: 'ProductInfo',
        component: ProductInfo,
    },
]

// 父路由结构
const layout = {
    template: `<router-view></router-view>`
}

export default [
    {
        path: '/product',
        name: 'product',
        component: layout,
        children: list
    }
]
